@echo off
rem !cmd
rem crawl sf people
rem


echo sf people crawler version 2015-03
echo.

if not exist "%JAVA_HOME%" (
	echo please set JAVA_HOME
	goto :eof
)
if not exist "%GROOVY_HOME%" (
	echo please set GROOVY_HOME
	goto :eof
)
if not exist "%GROOVY_HOME%\lib\jsoup-*.jar" (
	echo missing http://jsoup.org/packages/jsoup-1.7.3.jar
	goto :eof
)
where scriptcs >nul
if not errorlevel 0 (
	echo missing http://scriptcs.net/
	goto :eof
)

call scriptcs auth.cs | %GROOVY_HOME%\bin\groovy -c utf-8 crawler.groovy